How to "run as admin" in CMD?
I know it's possible to run CMD as admin. But if CMD is already open, is it possible to "run as admin"? Something like su or sudo in Linux?
September 5th, 2010 9:04pm
But if CMD is already open, is it possible to "run as admin"?
Based on my knowledge, there is no ways to run CMD as admin other than those mentioned in these two links:
http://www.lytebyte.com/2008/10/22/how-to-run-as-administrator-in-vista-command-line/
http://www.vistaclues.com/always-run-a-command-prompt-as-administrator/
For more information, please post your problem in this forum "The Official Scripting Guys Forum!":
http://social.technet.microsoft.com/Forums/en-US/ITCG/threads
This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
September 5th, 2010 9:19pm
Hi,
Thanks for posting in Microsoft TechNet forums.
You can use the parameter:
Runas /profile /user: administarter
For more information, please visit:
Runas
Best Regards
Dale Qiao
TechNet Subscriber Support
in forum. If you have any feedback on our support, please contact
tngfb@microsoft.com
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
September 6th, 2010 7:43am
Thanks for the answers.
For the "runas" command, I see that it changes the current directory. So, that's not really what I expected.
But I think I've found an alternative solution in the following page, first .reg file:
http://www.blogsdna.com/2226/windows-7-add-elevated-command-prompt-option-in-right-click-context-menu.htm
Free Windows Admin Tool Kit Click here and download it now
September 6th, 2010 3:54pm
I'm glad to hear that you found the solution. Thanks for posting in TechNet again.
Best Regards
Dale Qiao
TechNet Subscriber Support
in forum. If you have any feedback on our support, please contact
tngfb@microsoft.comPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
September 7th, 2010 3:53am